<!--{template /module/admin/view/head}-->
<div id="left_layout">
	<div id="main_content" class="container-fluid">
		<!--{template /module/admin/view/head_nav}-->
		<div style="margin-bottom:20px;">
			<a class="btn btn-flat{if $_var[gp_type] == 0} btn-primary{/if} btn-mini" href="{$ADMIN_SCRIPT}/stat/order">{lang state.order.view.everymonth}</a>
			<a class="btn btn-flat{if $_var[gp_type] == 1} btn-primary{/if} btn-mini" href="{$ADMIN_SCRIPT}/stat/order&type=1">{lang state.order.view.thisyear}</a>
		</div>
		<div class="row-fluid">
			<table>
				<tr>
				<td valign="top">
				<div class="well widget">
					<div class="widget-header">
						<h3 class="title">{lang state.order.view.table}</h3>
					</div>
					<div class="widget-content">
					<table class="table table-hover">
					<thead>
				        <tr>
				        	<th width="100">{lang state.order.view.time}</th>
				        	<th>{lang state.order.view.number}</th>
				        </tr>
			        </thead>
			        <!--{loop $xlist $key $val}-->
			        <tr>
			        	<td>{$key}{if $_var[gp_type] == 1}{lang state.order.view.month}{/if}</td>
			        	<td>{$val}{lang state.order.view.ge}</td>
			        </tr>
			        <!--{/loop}-->
			        <!--{if count($xlist) == 0}-->
			        <tr>
			        	<td colspan="2">* {lang admin.operation.empty}</td>
			        </tr>
			        <!--{/if}-->
			        </table>
					</div>
				</div>
			</td>
			<td width="40">&nbsp;</td>
			<td valign="top">
				<div class="well widget">
					<div class="widget-header">
						<h3 class="title">{lang state.order.view.timetrend}</h3>
					</div>
					<div class="widget-content">
					<table class="table table-hover">
					<thead>
						<tr>
							<th width="150">{lang state.order.view.period}</th>
							<th>{lang state.order.view.number}</th>
						</tr>
					</thead>
					<!--{loop $xhour_list $key $val}-->
			        <tr>
			        	<td>{$key}</td>
			        	<td>{$val}{lang state.order.view.ge}</td>
			        </tr>
			        <!--{/loop}-->
			        <!--{if count($xhour_list) == 0}-->
			        <tr>
			        	<td colspan="2">* {lang admin.operation.empty}</td>
			        </tr>
			        <!--{/if}-->
			        </table>
					</div>
				</div>
			</td>
			<td width="40">&nbsp;</td>
			<td valign="top">
				<div class="well widget">
					<div class="widget-header">
						<h3 class="title">对账</h3>
					</div>
					<div class="widget-content">
					<table class="table table-hover">
					<thead>
						<tr>
							<th width="120">项目</th>
							<th>金额</th>
						</tr>
					</thead>
			        <tr>
			        	<td>订单-支付宝</td>
			        	<td>+{$stat[ORDER][ALIPAY]}</td>
			        </tr>
			        <tr>
			        	<td>订单-微信支付</td>
			        	<td>+{$stat[ORDER][WEIXIN]}</td>
			        </tr>
			        <tr>
			        	<td>卡券-充值</td>
			        	<td>+{$stat[CARD][ONLINE]}</td>
			        </tr>
			        <tr>
			        	<td>卡券-储值卡</td>
			        	<td>+{$stat[CARD][CREDIT]}</td>
			        </tr>
			        <tr>
			        	<td>奖惩-金额</td>
			        	<td>{$stat[CREDIT][CREDIT]}</td>
			        </tr>
			        <tr>
			        	<td>用户-金额</td>
			        	<td>{$stat[USER][CREDIT]}</td>
			        </tr>
			        <tr>
			        	<td>收入</td>
			        	<td>+{$stat[IN]}（支付宝+微信支付+充值+储值卡）</td>
			        </tr>
			        <tr>
			        	<td>支出</td>
			        	<td>+{$stat[OUT]}（订单总额：{$stat[ORDER][ALL]} + 用户余额：{$stat[USER][CREDIT]}）</td>
			        </tr>
			        </table>
					</div>
				</div>
			</td>
			</tr>
			</table>
		</div>
	</div>
</div>
<!--{template /module/admin/view/foot}-->